<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>离校未就业毕业生实名制登记</title>
	<link rel="stylesheet" href="./styles/css/common.css">
</head>

<body>
	<script src="http://rsj.beijing.gov.cn/images/rsj_header.js"></script>
	<include src="./include/header.html"></include>
	<div class="common_wrap">
		<div class="content clearfix">
			<div class="contentItem left boxShadow">
				<div class="proof_title">
					<h3>离校未就业毕业生实名制登记</h3>
				</div>
				<div class="row">
					<div class="col-7">
						<div class="inform_text">
							<p class="qytj clearfix">
								<span>用户须知</span></p>
							<div>
								<p class="black">1、
									<span>实名制登记服务为离校后两年内未就业的北京市户籍毕业生，提供职业指导、职业培训、推荐就业等服务；</span>
								</p>
								<p class="black">2、
									<span>请认真填写相关信息，保证信息准确、完整，方便后续业务办理；</span>
								</p>
								<p class="black">3、
									<span>如有疑问，请联系户籍区毕业生就业工作部门。</span>
								</p>
							</div>
							<p class="agree">
								<label>
									<input type="checkbox" class="J_policy">
									<span>已阅读并同意</span>
								</label>
							</p>
							<button href="#" class="indexhref J_apply" disabled>开始办理</button>
						</div>
					</div>
					<div class="col-5">
						<img src="./styles/images/leftpic01.png" alt="">
					</div>
				</div>
			</div>
			<include src="./include/commonList.html"></include>
		</div>
	</div>

	<!-- <include src="./include/footer.html"></include> -->
	<script src="http://rsj.beijing.gov.cn/footer.js"></script>
</body>
<script src="./common/vendor.js"></script>
<script src="./common/common.js"></script>
<script>
	$(function () {
		// 获取基本信息
		var sfcz = 0;
		base();
		function base() {
			$.asyncRender({
				url: '/smzdj/jbxxCx',
				type: 'get',
				wrap: '#J_area',
				tem: '#J_item',
				pos: 'returnData',
			}).done(function (res) {
				var data = res.returnData;
				if (+data.executeResult === 1) {
					sfcz = data.jbxx.sfcz;
				} else {
					$.layerMsg(data.message, '我知道了', function () {
					});
				}
			})
			$.asyncRender({
				url: '/smzdj/getLxdh',
				type: 'get',
				wrap: '#J_area_phone',
				tem: '#J_item_phone',
				pos: 'returnData',
			}).done(function (res) {
				var data = res.returnData;
				if (+data.executeResult === 1) {
				} else {
					$.layerMsg(data.message, '我知道了', function () {
					});
				}
			})
		}
		var $apply = $('.J_apply'),
			$policy = $('.J_policy');
		checkoutEffect();
		$policy.change(function () {
			checkoutEffect();
		});
		
		/**
     	 checkbox 和 button对应关系
    	*/
		function checkoutEffect() {
			$apply[0].disabled = !$policy[0].checked;
		}

		// 开始办理
		$(document).on('click', '.J_apply', function () {
			if (sfcz == 1) {
				window.location.href = "./detail.html";
			} else if (sfcz == 0) {
				window.location.href = "./order.html";
			}
		});
	});
</script>

</html>